package com.mioto.ld.module.device.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * @author mioto-qinxj
 * @date 2024/6/8
 * @desc
 */
@Getter
@Setter
@ApiModel("设备详情")
public class DeviceDetailVO {
    @ApiModelProperty(value = "设备id")
    private Integer id;
    @ApiModelProperty("设备状态 0-离线 1-在线 2-故障")
    private int status;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "注册时间")
    private Date registrationTime;
    @ApiModelProperty(value = "详细地址")
    private String detailAddress;
    @ApiModelProperty(value = "设备经纬度坐标")
    private String location;
    @ApiModelProperty("设备类型")
    private String deviceType;
    @ApiModelProperty("设备型号")
    private String deviceModel;
    @ApiModelProperty("设备厂商")
    private String deviceManufacturer;
    @ApiModelProperty("所属客户")
    private String organizationName;
    @ApiModelProperty(value = "设备序列表")
    private String sn;
    @ApiModelProperty(value = "连接方式 1-mqtt")
    private Integer protocolType;
}
